package com.cmcc.driver.broadcast

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent

class OrderReceiver : BroadcastReceiver() {
    private lateinit var oscListener: OrderStateChangeListener
    override fun onReceive(context: Context?, intent: Intent?) {
        oscListener.stateChange(intent)
    }

    fun setOrderStateChangeListener(listener: OrderStateChangeListener) {
        oscListener = listener
    }

}

interface OrderStateChangeListener {
    fun stateChange(intent: Intent?)
}